package com.changgou.goods.dao;

import com.changgou.goods.pojo.Brand;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


@Repository
public interface BrandMapper extends Mapper<Brand> {

    @Select("select tb.* from b_category_brand tcb,tb_brand tb where tb.category_id ={categoryid} and tb.id=tcb.id ")
    List<Brand> findByCategory(Integer categoryid);
}
